package com.xqit.ydzhkt.payment.service.impl;

import com.xqit.ydzhkt.dto.PaymentDto;
import com.xqit.ydzhkt.entity.Payment;
import com.xqit.ydzhkt.payment.mapper.PaymentMapper;
import com.xqit.ydzhkt.payment.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Janus on 2020/6/1
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    //需要缴费的项目
    @Override
    public List<PaymentDto> getPaymentProject(String xh) {
        return paymentMapper.getPaymentProject(xh);
    }

    //根据学号查询已经缴费的项目
    @Override
    public List<Payment> getPaymentRecord(String xh) {
        return paymentMapper.getPaymentRecord(xh);
    }
}
